package com.sugo.seckill.distributedlock.redis;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * <p>redisson的配置类</p>
 *
 * @author langxing
 * @date 2021/1/24 16:12
 */
@ConfigurationProperties(prefix = "redisson")
@Data
public class RedissonProperties {

    private int timeout=3000;
    private String address;
    private String password;
    private int connectionPoolSize = 64;
    private int connectionMinimumIdleSize=10;
    private int slaveConnectionPoolSize = 250;
    private int masterConnectionPoolSize = 250;
    private String[] sentinelAddresses;
    private String masterName;
}
